package io.finer.erp.jeecg.approve.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.finer.erp.jeecg.approve.entity.ApproveRecord;

import java.util.List;
import java.util.Map;

public interface ApproveService<T> {
    public void submit(String model, String id, IService<T> service);
    public String approve(String model, String id, String note);
    public boolean canApproveorReject(String model, String id);
    public Map<String, Boolean> canSubmitorWithdraworInvalid(String model, String id, IService<T> service);
    public void reject(String model, String id, String note);
    public List<ApproveRecord> queryApproveRecordList(String model, String id);
    public void withDraw(String model, String id);
}
